package com.lenovo.smarttraffic.ui.activity;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.support.annotation.Nullable;

public class Activity_1_Mysqlite3 extends SQLiteOpenHelper {
    private Context context;
    private String CREATE_TABLE = "CREATE TABLE user1(" +
            "id integer PRIMARY KEY Autoincrement," +
            "car_number int," +
            "money int," +
            "user text," +
            "time time" +
            ")";
    public Activity_1_Mysqlite3(@Nullable Context context, @Nullable String name, @Nullable SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
        this.context = context;
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(CREATE_TABLE);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
